/*
 * Copyright @ 2024 weili23
 * com.example.mythread.a03threadcase 15:44
 * All right reserved.
 */

package com.example.mythread.a03threadcase;

import java.util.concurrent.Callable;

/**
 * @desc:
 * @author: weili23
 * @createTime: 2024/10/16 15:44
 * @version: v1.0
 */
public class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        for (int i = 0; i < 100; i++) {
            sum =sum+i;
        }
        return sum;
    }
}
